﻿using RabbitMQ.Client;

namespace YEA.Infrastructure.Gateway
{
    public delegate Message ConvertToMessage(IModel channel, object packetToSend);
    public delegate void MessageConsumer(Message message, IModel channel, DeliveryHeader header);

    public interface IMessageConsumer {
        void ConsumeMessage(Message message, IModel channel, DeliveryHeader header);
    }
    public interface IConvertToMessage {
        Message ConvertObjectToMessage( IModel channel, object packetToSend);
    }
}
